home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11075 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: rumpelkammer.uni-mannheim.de!ba57
  2. From: ba57@rumpelkammer.uni-mannheim.de (User ba57)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Strange Syntax? int foo( ) = [xxx] ;
  5. Date: 12 Mar 1996 16:25:53 GMT
  6. Organization: Rechenzentrum Uni Mannheim
  7. Message-ID: <4i48ih$eo@trumpet.uni-mannheim.de>
  8. References: <4h0k7e$dq2@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: rumpelkammer.uni-mannheim.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Champalber (champalber@aol.com) wrote:
  13. : When I use BC++ with Object Window Libraries (OWL), I use the following
  14. : line to say "When my window receives a MW_KEYDOWN message, call WMKeyDown(
  15. : )":
  16.  
  17. : void WMKeyDown( RTMessage Msg) = [WM_FIRST + WM_KEYDOWN];
  18.  
  19. : Can somebody tell me more about this syntax?
  20. : What do the [ ]'s represent?
  21. : Is this a BC++ feature, or a C++ feature?
  22. : How can I use this feature?
  23.  
  24. It is (or rather used to be) a special BC++ feature. As far as I know, it was
  25. removed from later versions of BC++ (i.e., later than 3.1). Borland's OWL now 
  26. uses another technique to map messages to member functions (some macro stuff, 
  27. I think). Apparently, Borland wanted to be more compliant with the standard.
  28.  
  29. Hope this helps,
  30. Thomas
  31.